package com.showsu.editor.service.impl;


import com.showsu.editor.entity.ai.AIXhsNoteKeywords;
import com.showsu.editor.entity.bigmodel.ChatCompletionsResponse;
import com.showsu.editor.service.IAIChatCompletionsService;
import com.showsu.editor.utils.remote.BigmodelUtil;
import com.showsu.editor.utils.volcengine.VolcengineArkUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class AIChatCompletionsServicdeImpl implements IAIChatCompletionsService {

    @Autowired
    private BigmodelUtil bigmodelUtil;

    @Autowired
    private VolcengineArkUtil volcengineArkUtil;



    @Override
    public String getXhsNoteTagByAnalyzeContent(String content) {
        return bigmodelUtil.getXhsNoteTagByAnalyzeContent(content);
    }

    @Override
    public List<AIXhsNoteKeywords> getXhsNoteKeywordsByAnalyzeContent(String content) {
        return volcengineArkUtil.getXhsNoteKeywordsByAnalyzeContent(content);
    }

    @Override
    public ChatCompletionsResponse getCheckTextByAnalyzeContent(String content) {
        return volcengineArkUtil.getCheckTextByAnalyzeContent(content);
    }
}
